package com.example.lottery_system.service.dto;

import com.example.lottery_system.service.Enum.ActivityPrizeStatusEnum;
import com.example.lottery_system.service.Enum.ActivityPrizeTiersEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PrizeDto {
    /**
     * 奖品id
     */
    private Long id;

    /**
     * 奖品名
     */
    private String name;

    /**
     * 图片索引
     */
    private String imageUrl;

    /**
     * 奖品描述
     */
    private String desc;

    /**
     * 奖品等级
     */
    private ActivityPrizeTiersEnum prizeTiers;

    /**
     * 奖品价格
     */
    private BigDecimal price;
    /**
     * 奖品数量
     */
    private Long amount;

    /**
     * 奖品状态
     */
    private ActivityPrizeStatusEnum status;
    public  Boolean valid()  {
        return status.name().equalsIgnoreCase(ActivityPrizeStatusEnum.RUNNING.name());
    }




}
